package cn.stylefeng.guns.modular.tool.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.tool.entity.ToolExpressScan;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressScanParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressScanResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 扫码分配 服务类
 * </p>
 *
 * @author 
 * @since 2022-03-28
 */
public interface ToolExpressScanService extends IService<ToolExpressScan> {

    /**
     * 新增
     *
     * @author 
     * @Date 2022-03-28
     */
    void add(ToolExpressScanParam param);

    /**
     * 删除
     *
     * @author 
     * @Date 2022-03-28
     */
    void delete(ToolExpressScanParam param);

    /**
     * 更新
     *
     * @author 
     * @Date 2022-03-28
     */
    void update(ToolExpressScanParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author 
     * @Date 2022-03-28
     */
    ToolExpressScanResult findBySpec(ToolExpressScanParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author 
     * @Date 2022-03-28
     */
    List<ToolExpressScanResult> findListBySpec(ToolExpressScanParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author 
     * @Date 2022-03-28
     */
     LayuiPageInfo findPageBySpec(ToolExpressScanParam param,String condition);

     /**
      * 查询分页数据，Specification模式
      *
      * @author 
      * @Date 2022-03-28
      */
      LayuiPageInfo findPageWellenBySpec(ToolExpressScanParam param,String condition);

	boolean saveBatchList(List<ToolExpressScanParam> list);

	void deleteBySpec(ToolExpressScanParam scanParam);

	void updateBySpec(ToolExpressScanParam toolExpressScanParam);

	void updateArrangeBySpec(ToolExpressScanParam scanUpdate);

}
